package org.vt.ece4564.pcw.assignment2data;

import javax.jdo.annotations.*;

import com.google.appengine.api.datastore.Key;

@PersistenceCapable
public class Contact {
	
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Key key_;
	
	@Persistent
	private String username_;
	
	@Persistent
	private String name_;
	
	@Persistent
	private String number_;
	
	public Contact(String username, String name, String number) {
		super();
		username_ = username;
		name_ = name;
		number_ = number;
	}
	
	public void setKey(Key key) {
		key_ = key;
	}
	
	public void setUsername(String username) {
		username_ = username;
	}
	
	public void setName(String name) {
		name_ = name;
	}
	
	public void setNumber(String number) {
		number_ = number;
	}
	
	public Key getKey() {
		return key_;
	}
	
	public String getUsername() {
		return username_;
	}
	
	public String getName() {
		return name_;
	}
	
	public String getNumber() {
		return number_;
	}

}
